package com.ymatou.iapi.sellerquery.testcase;

import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.json.JSONArray;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.ymatou.iapi.sellerquery.parameter.GetOrderListByOrderIdListBean;
import com.ymatou.iapi.sellerquery.parameter.resp.OrderInfoListResp2;
import com.ymatou.iapi.sellerquery.service.GetOrderListByOrderIdListCall;
import com.ymt.core.tool.FormatUtil;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.TestCase;
import com.ymt.utils.annotation.TestSuite;
import com.ymt.utils.tag.P1;
import com.ymt.utils.tag.P3;
import com.ymttest.business.service.OrderCallService;
import com.ymttest.utils.constant.ECode;



/**
 * 根据订单id列表获取订单列表 FreeMaker Template自动生成代码
 */
@TestSuite
public class Ts_GetOrderListByOrderIdList {

	private static GetOrderListByOrderIdListBean getorderlistbyorderidlistbean;
	private static GetOrderListByOrderIdListCall getorderlistbyorderidlistcall;
	private static com.ymatou.query.trading.api.service.GetOrderListByOrderIdListCall getOrderListByOrderIdListCall_net;
	 
	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("根据订单id列表获取订单列表");
	}

	@Before
	public void caseUp() {

		getorderlistbyorderidlistbean = new GetOrderListByOrderIdListBean();
		getorderlistbyorderidlistcall = new GetOrderListByOrderIdListCall();
		getOrderListByOrderIdListCall_net=new com.ymatou.query.trading.api.service.GetOrderListByOrderIdListCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(getorderlistbyorderidlistcall.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}
	

	
	private void verifyDB(){
		List<OrderInfoListResp2> getOrderInfoList = getorderlistbyorderidlistcall.getOrderInfoList();
		
		List<com.ymatou.query.trading.api.parameter.OrderInfoListResp2> getOrderInfoList_net=getOrderListByOrderIdListCall_net.getOrderInfoList();								
		Logger.verifyEquals(ECode.SUCCESS,getorderlistbyorderidlistcall.getCode(),"验证code");
		Logger.comment("校验java重构跟.net接口返回结果");
		
		for(int i=0;i<getOrderInfoList.size();i++){
			Logger.verifyEquals(getOrderInfoList_net.get(i).getOrderId(), getOrderInfoList.get(i).getOrderId(),
					"验证orderId");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getUserId(), getOrderInfoList.get(i).getUserId(),
					"验证UserId");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getBuyerId(), getOrderInfoList.get(i).getBuyerId(),
					"验证BuyerId");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getAddTime(), getOrderInfoList.get(i).getAddTime(),
					"验证AddTime");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getReceivePerson(), getOrderInfoList.get(i).getReceivePerson(),
					"验证ReceivePerson");
			
			Logger.verifyEquals(getOrderInfoList_net.get(i).getPhone(), getOrderInfoList.get(i).getPhone(),
					"验证Phone");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getTelephone(), getOrderInfoList.get(i).getTelephone(),
					"验证Telephone");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getQQ(), getOrderInfoList.get(i).getQQ(),
					"验证QQ");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getTradingId(), getOrderInfoList.get(i).getTradingId(),
					"验证TradingId");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getTradingStatus(), getOrderInfoList.get(i).getTradingStatus(),
					"验证TradingStatus");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getOperate(), getOrderInfoList.get(i).getOperate(),
					"验证Operate");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getOperateExpireTime(), getOrderInfoList.get(i).getOperateExpireTime(),
					"验证OperateExpireTime");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getAddress(), getOrderInfoList.get(i).getAddress(),
					"验证Address");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getOrderId(), getOrderInfoList.get(i).getOrderId(),
					"验证PostCode");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getEmail(), getOrderInfoList.get(i).getEmail(),
					"验证Email");
     		Logger.verifyEquals(getOrderInfoList_net.get(i).getLeaveWord(), getOrderInfoList.get(i).getLeaveWord(),
					"验证LeaveWord");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getUnfreezeStatus(), getOrderInfoList.get(i).getUnfreezeStatus(),
					"验证UnfreezeStatus");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getDispathTime(), getOrderInfoList.get(i).getDispathTime(),
					"验证DispathTime");
			
			Logger.verifyEquals(getOrderInfoList_net.get(i).getTopicId(), getOrderInfoList.get(i).getTopicId(),
					"验证TopicId");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getTitle(), getOrderInfoList.get(i).getTitle(),
					"验证Title");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getReplyTopicWhenOrderPaid(), getOrderInfoList.get(i).getReplyTopicWhenOrderPaid(),
					"验证ReplyTopicWhenOrderPaid");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getPaidInFull(), getOrderInfoList.get(i).getPaidInFull(),
					"验证PaidInFull");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getCouponCode(), getOrderInfoList.get(i).getCouponCode(),
					"验证CouponCode");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getCouponValue(), getOrderInfoList.get(i).getCouponValue(),
					"验证CouponValue");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getCouponType(), getOrderInfoList.get(i).getCouponType(),
					"验证CouponType");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getPaidTime(), getOrderInfoList.get(i).getPaidTime(),
					"验证PaidTime");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getApplyPostPayTime(), getOrderInfoList.get(i).getApplyPostPayTime(),
					"验证ApplyPostPayTime");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getPostPaidTime(), getOrderInfoList.get(i).getPostPaidTime(),
					"验证PostPaidTime");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getAcceptTime(), getOrderInfoList.get(i).getAcceptTime(),
					"验证AcceptTime");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getConfirmedTime(), getOrderInfoList.get(i).getConfirmedTime(),
					"验证ConfirmedTime");
			
			Logger.verifyEquals(getOrderInfoList_net.get(i).getChangeAddressTime(), getOrderInfoList.get(i).getChangeAddressTime(),
					"验证ChangeAddressTime");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getDistributor(), getOrderInfoList.get(i).getDistributor(),
					"验证Distributor");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getThirdOrderId(), getOrderInfoList.get(i).getThirdOrderId(),
					"验证ThirdOrderId");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getType(), getOrderInfoList.get(i).getType(),
					"验证Type");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getOldFreight(), getOrderInfoList.get(i).getOldFreight(),
					"验证OldFreight");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getDiscountTime(), getOrderInfoList.get(i).getDiscountTime(),
					"验证DiscountTime");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getOldDiscount(), getOrderInfoList.get(i).getOldDiscount(),
					"验证OldDiscount");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getCancelTime(), getOrderInfoList.get(i).getCancelTime(),
					"验证CancelTime");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getShangouOrder(), getOrderInfoList.get(i).getShangouOrder(),
					"验证ShangouOrder");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getBuyerLoginId(), getOrderInfoList.get(i).getBuyerLoginId(),
					"验证BuyerLoginId");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getBuyerLoginEmail(), getOrderInfoList.get(i).getBuyerLoginEmail(),
					"验证BuyerLoginEmail");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getSellerLoginId(), getOrderInfoList.get(i).getSellerLoginId(),
					"验证SellerLoginId");
			
			Logger.verifyEquals(getOrderInfoList_net.get(i).getSellerLoginEmail(), getOrderInfoList.get(i).getSellerLoginEmail(),
					"验证SellerLoginEmail");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getIsMerchant(), getOrderInfoList.get(i).getIsMerchant(),
					"验证IsMerchant");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getBuyerNickName(), getOrderInfoList.get(i).getBuyerNickName(),
					"验证BuyerNickName");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getAutoReceiveTime(), getOrderInfoList.get(i).getAutoReceiveTime(),
					"验证AutoReceiveTime");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getIsAutoReceiveEnabled(), getOrderInfoList.get(i).getIsAutoReceiveEnabled(),
					"验证IsAutoReceiveEnabled");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getCredited(), getOrderInfoList.get(i).getCredited(),
					"验证Credited");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getCreditId(), getOrderInfoList.get(i).getCreditId(),
					"验证CreditId");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getCreditUserId(), getOrderInfoList.get(i).getCreditUserId(),
					"验证CreditUserId");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getCreditServiceRange(), getOrderInfoList.get(i).getCreditServiceRange(),
					"验证CreditServiceRange");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getCreditUniformityRange(), getOrderInfoList.get(i).getCreditUniformityRange(),
					"验证CreditUniformityRange");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getCreditScoreRange(), getOrderInfoList.get(i).getCreditScoreRange(),
					"验证CreditScoreRange");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getCreditDescript(), getOrderInfoList.get(i).getCreditDescript(),
					"验证CreditDescript");
			
			Logger.verifyEquals(getOrderInfoList_net.get(i).getCreditAddTime(), getOrderInfoList.get(i).getCreditAddTime(),
					"验证CreditAddTime");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getCreditUpdateTime(), getOrderInfoList.get(i).getCreditUpdateTime(),
					"验证CreditUpdateTime");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getCreditSellerReply(), getOrderInfoList.get(i).getCreditSellerReply(),
					"验证CreditSellerReply");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getCreditSellerReplyUpdateTime(), getOrderInfoList.get(i).getCreditSellerReplyUpdateTime(),
					"验证CreditSellerReplyUpdateTime");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getSellerNote(), getOrderInfoList.get(i).getSellerNote(),
					"验证SellerNote");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getBillCodeList(), getOrderInfoList.get(i).getBillCodeList(),
					"验证BillCodeList");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getLogisticsType(), getOrderInfoList.get(i).getLogisticsType(),
					"验证LogisticsType");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getStockStatus(), getOrderInfoList.get(i).getStockStatus(),
					"验证StockStatus");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getDelayReceiveFrozened(), getOrderInfoList.get(i).getDelayReceiveFrozened(),
					"验证DelayReceiveFrozened");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getDelayReceiveFrozenTime(), getOrderInfoList.get(i).getDelayReceiveFrozenTime(),
					"验证DelayReceiveFrozenTime");
     		Logger.verifyEquals(getOrderInfoList_net.get(i).getDelayReceiveUpdateTime(), getOrderInfoList.get(i).getDelayReceiveUpdateTime(),
					"验证DelayReceiveUpdateTime");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getDelayReceiveAddTime(), getOrderInfoList.get(i).getDelayReceiveAddTime(),
					"验证DelayReceiveAddTime");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getDelayReceiveUserId(), getOrderInfoList.get(i).getDelayReceiveUserId(),
					"验证DelayReceiveUserId");
			
			Logger.verifyEquals(getOrderInfoList_net.get(i).getDispatchTime(), getOrderInfoList.get(i).getDispatchTime(),
					"验证DispatchTime");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getFrozen(), getOrderInfoList.get(i).getFrozen(),
					"验证Frozen");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getPlatformEnum(), getOrderInfoList.get(i).getPlatformEnum(),
					"验证PlatformEnum");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getIsShippedByXlobo(), getOrderInfoList.get(i).getIsShippedByXlobo(),
					"验证IsShippedByXlobo");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getBillInfoList(), getOrderInfoList.get(i).getBillInfoList(),
					"验证BillInfoList");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getOrderSummaryList(), getOrderInfoList.get(i).getOrderSummaryList(),
					"验证OrderSummaryList");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getThirdPartyRefundStatus(), getOrderInfoList.get(i).getThirdPartyRefundStatus(),
					"验证ThirdPartyRefundStatus");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getSupportLocalRefund(), getOrderInfoList.get(i).getSupportLocalRefund(),
					"验证SupportLocalRefund");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getLocalRefundApplyTime(), getOrderInfoList.get(i).getLocalRefundApplyTime(),
					"验证LocalRefundApplyTime");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getRiskVerifiedStatus(), getOrderInfoList.get(i).getRiskVerifiedStatus(),
					"验证RiskVerifiedStatus");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getSalesRefundStatus(), getOrderInfoList.get(i).getSalesRefundStatus(),
					"验证SalesRefundStatus");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getPackageDelivery_DomesticDelivered(), getOrderInfoList.get(i).getPackageDelivery_DomesticDelivered(),
					"验证PackageDelivery_DomesticDelivered");
			
			Logger.verifyEquals(getOrderInfoList_net.get(i).getCancelReason(), getOrderInfoList.get(i).getCancelReason(),
					"验证CancelReason");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getNeedUploadIdCard(), getOrderInfoList.get(i).getNeedUploadIdCard(),
					"验证NeedUploadIdCard");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getHaveUploadedIdCard(), getOrderInfoList.get(i).getHaveUploadedIdCard(),
					"验证HaveUploadedIdCard");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getSellerCouponCode(), getOrderInfoList.get(i).getSellerCouponCode(),
					"验证SellerCouponCode");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getYmtCouponCode(), getOrderInfoList.get(i).getYmtCouponCode(),
					"验证YmtCouponCode");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getMainOrderId(), getOrderInfoList.get(i).getMainOrderId(),
					"验证MainOrderId");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getRemarkLevel(), getOrderInfoList.get(i).getRemarkLevel(),
					"验证RemarkLevel");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getBusynessTypeList(), getOrderInfoList.get(i).getBusynessTypeList(),
					"验证BusynessTypeList");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getIsNewSellerOrder(), getOrderInfoList.get(i).getIsNewSellerOrder(),
					"验证IsNewSellerOrder");
			Logger.verifyEquals(getOrderInfoList_net.get(i).getIsNewCustomerOrder(), getOrderInfoList.get(i).getIsNewCustomerOrder(),
					"验证IsNewCustomerOrder");
			
			
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getSailProtected(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getSailProtected(), "验证接口返回数据SailProtected");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getPropertyInfo(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getPropertyInfo(), "验证接口返回数据propertyInfo");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getAmount(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getAmount(), "验证接口返回数据amount");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getItemType(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getItemType(), "验证接口返回数据itemType");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getCatalogId(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getCatalogId(), "验证接口返回数据catalogId");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getProductId(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getProductId(), "验证接口返回数据productId");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getDescription(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getDescription(), "验证接口返回数据description");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getOrderItemId(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getOrderItemId(), "验证接口返回数据orderItemId");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getPictureUrl(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getPictureUrl(), "验证接口返回数据pictureUrl");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getReferenceUrl(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getReferenceUrl(), "验证接口返回数据referenceUrl");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getTitle(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getTitle(), "验证接口返回数据title");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getSubProductCategoryId(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getSubProductCategoryId(), "验证接口返回数据subProductCategoryId");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getLogisticsType(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getLogisticsType(), "验证接口返回数据logisticsType");
			
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getPremium(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getPremium(), "验证接口返回数据premium");
			
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getSku(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getSku(), "验证接口返回数据sku");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getPriceType(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getPriceType(), "验证接口返回数据priceType");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getBondedArea(), 
   				    getOrderInfoList.get(i).getOrderItemListResp().get(0).getBondedArea(), "验证接口返回数据bondedArea");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getProductRefundChannel(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getProductRefundChannel(), "验证接口返回数据productRefundChannel");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getOrderItemInfoExt(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getOrderItemInfoExt(), "验证接口返回数据orderItemInfoExt");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getRefundBillNo(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getRefundBillNo(), "验证接口返回数据refundBillNo");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getTariffType(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getTariffType(), "验证接口返回数据tariffType");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getSalesType(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getSalesType(), "验证接口返回数据salesType");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getPromotion(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getPromotion(), "验证接口返回数据promotion");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getSupportRtnWithoutReason(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getSupportRtnWithoutReason(), "验证接口返回数据supportRtnWithoutReason");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getFreightFree(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getFreightFree(), "验证接口返回数据freightFree");
			Logger.verifyEquals( "false", 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getCost(), "验证接口返回数据cost");
			Logger.verifyEquals( "false", 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getIsCost(), "验证接口返回数据IsCost");
			
	
			
			DecimalFormat df = new DecimalFormat("0.00");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderPrice(), 
					df.format( getOrderInfoList.get(i).getOrderPrice()), "验证接口返回数据OrderPrice");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderDiscount(), 
					df.format( getOrderInfoList.get(i).getOrderDiscount()), "验证接口返回数据OrderDiscount");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getFreight(), 
					df.format( getOrderInfoList.get(i).getFreight()), "验证接口返回数据Freight");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getDiscount(), 
					df.format( getOrderInfoList.get(i).getDiscount()), "验证接口返回数据Discount");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getUseGiftAmount(), 
					df.format( getOrderInfoList.get(i).getUseGiftAmount()), "验证接口返回数据UseGiftAmount");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getAutoCancelOrderHours(), 
					df.format( getOrderInfoList.get(i).getAutoCancelOrderHours()), "验证接口返回数据AutoCancelOrderHours");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getTotalPrice(), 
					df.format( getOrderInfoList.get(i).getTotalPrice()), "验证接口返回数据TotalPrice");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getUseFreeCardAmount(), 
					df.format( getOrderInfoList.get(i).getUseFreeCardAmount()), "验证接口返回数据UseFreeCardAmount");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getRefund(), 
					df.format( getOrderInfoList.get(i).getRefund()), "验证接口返回数据Refund");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getNeedPostPay(), 
					df.format( getOrderInfoList.get(i).getNeedPostPay()), "验证接口返回数据NeedPostPay");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getRealPay(), 
					df.format( getOrderInfoList.get(i).getRealPay()), "验证接口返回数据RealPay");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getRealPaidAmountOfGift(), 
					df.format( getOrderInfoList.get(i).getRealPaidAmountOfGift()), "验证接口返回数据RealPaidAmountOfGift");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getNeedPrePayAmountOfCash(), 
					df.format( getOrderInfoList.get(i).getNeedPrePayAmountOfCash()), "验证接口返回数据NeedPrePayAmountOfCash");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getRealPostPay(), 
					df.format( getOrderInfoList.get(i).getRealPostPay()), "验证接口返回数据RealPostPay");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getPostPaidAmountOfGift(), 
					df.format( getOrderInfoList.get(i).getPostPaidAmountOfGift()), "验证接口返回数据PostPaidAmountOfGift");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getPostPaidAmountOfCoupon(), 
					df.format( getOrderInfoList.get(i).getPostPaidAmountOfCoupon()), "验证接口返回数据PostPaidAmountOfCoupon");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getFirstPay(), 
					df.format( getOrderInfoList.get(i).getFirstPay()), "验证接口返回数据FirstPay");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getRealPaidAmountOfCash(), 
					df.format( getOrderInfoList.get(i).getRealPaidAmountOfCash()), "验证接口返回数据RealPaidAmountOfCash");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getPaidAmountOfFreeCard(), 
					df.format( getOrderInfoList.get(i).getPaidAmountOfFreeCard()), "验证接口返回数据PaidAmountOfFreeCard");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getPaidAmountOfCoupon(), 
					df.format( getOrderInfoList.get(i).getPaidAmountOfCoupon()), "验证接口返回数据PaidAmountOfCoupon");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getSellerCouponAmount(), 
					df.format( getOrderInfoList.get(i).getSellerCouponAmount()), "验证接口返回数据SellerCouponAmount");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getTotalSalesRefundAmount(), 
					df.format( getOrderInfoList.get(i).getTotalSalesRefundAmount()), "验证接口返回数据TotalSalesRefundAmount");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getRealSettlementAmountOfCoupon(), 
					df.format( getOrderInfoList.get(i).getRealSettlementAmountOfCoupon()), "验证接口返回数据RealSettlementAmountOfCoupon");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getTotalPriceChange(), 
					df.format( getOrderInfoList.get(i).getTotalPriceChange()), "验证接口返回数据TotalPriceChange");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getYmtCouponAmount(), 
					df.format( getOrderInfoList.get(i).getYmtCouponAmount()), "验证接口返回数据YmtCouponAmount");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getPaidAmountOfYmtCoupon(), 
					df.format( getOrderInfoList.get(i).getPaidAmountOfYmtCoupon()), "验证接口返回数据PaidAmountOfYmtCoupon");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getPayableAmount(), 
					df.format( getOrderInfoList.get(i).getPayableAmount()), "验证接口返回数据PayableAmount");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getPromotionReducedAmount(), 
					df.format( getOrderInfoList.get(i).getPromotionReducedAmount()), "验证接口返回数据PromotionReducedAmount");
//			Logger.verifyEquals( getOrderInfoList_net.get(i).getRealPaidAmountOfCash(), 
//					df.format( getOrderInfoList.get(i).getRealPaidAmountOfCash()), "验证接口返回数据RealPaidAmountOfCash");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getPrice(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getPrice(), "验证接口返回数据price");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getSellerCouponAmount(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getSellerCouponAmount(), "验证接口返回数据sellerCouponAmount");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getYmtCouponAmount(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getYmtCouponAmount(), "验证接口返回数据ymtCouponAmount");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getDiscount(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getDiscount(), "验证接口返回数据discount");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getFreight(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getFreight(), "验证接口返回数据freight");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getProductPrice(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getProductPrice(), "验证接口返回数据productPrice");
			Logger.verifyEquals( getOrderInfoList_net.get(i).getOrderItemListResp().get(0).getProductOriginalPrice(), 
					getOrderInfoList.get(i).getOrderItemListResp().get(0).getProductOriginalPrice(), "验证接口返回数据productOriginalPrice");

			
					
			
		   }
	}
	
	
	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_GetOrderListByOrderIdList_001(){
		Logger.start(true,"根据订单id列表获取订单列表成功");
		try {
			// 创建订单
			ArrayList<Integer> list = new ArrayList<Integer>();
			Map info = new OrderCallService().createBatchM2cOrder(3);
			JSONArray Orderlist = (JSONArray) info.get("orderIds");
			int sellerId = (Integer) info.get("sellerId");		
			for (int k = 0; k < Orderlist.length(); k++) {
				list.add(Orderlist.getInt(k));
			}
			
			// 参数
			getorderlistbyorderidlistbean.setOrderIdList(list);
			getorderlistbyorderidlistbean.setSellerId(sellerId);			
			
			// 发送请求
			
			getorderlistbyorderidlistcall.setData(getorderlistbyorderidlistbean);
			getorderlistbyorderidlistcall.callService();	
			
			getOrderListByOrderIdListCall_net.setData(getorderlistbyorderidlistbean);
			getOrderListByOrderIdListCall_net.callService();
						
			Logger.verifyEquals(ECode.SUCCESS, getorderlistbyorderidlistcall.getCode(), "验证code");
			
			verifyDB();
			}catch (Exception e) {
			Logger.fail(e);
		    }
	  }
	
	
	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_GetOrderListByOrderIdList_002(){
		Logger.start(true,"卖家id为空，列表获取订单列表为空");
		try {
			// 创建订单
			ArrayList<Integer> list = new ArrayList<Integer>();
			Map info = new OrderCallService().createBatchM2cOrder(3);
			JSONArray Orderlist = (JSONArray) info.get("orderIds");
			int sellerId = (Integer) info.get("sellerId");		
			for (int k = 0; k < Orderlist.length(); k++) {
				list.add(Orderlist.getInt(k));
			}
			
			// 参数
			getorderlistbyorderidlistbean.setOrderIdList(list);
		  //getorderlistbyorderidlistbean.setSellerId(11111111);			
			
			// 发送请求
			
			getorderlistbyorderidlistcall.setData(getorderlistbyorderidlistbean);
			getorderlistbyorderidlistcall.callService();			
						
			Logger.verifyEquals(ECode.SUCCESS, getorderlistbyorderidlistcall.getCode(), "验证code");
			
			
			}catch (Exception e) {
			Logger.fail(e);
		    }
	  }
	
	
	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_GetOrderListByOrderIdList_003(){
		Logger.start(true,"卖家id不存在，列表获取订单列表为空");
		try {
			// 创建订单
			ArrayList<Integer> list = new ArrayList<Integer>();
			Map info = new OrderCallService().createBatchM2cOrder(3);
			JSONArray Orderlist = (JSONArray) info.get("orderIds");
			int sellerId = (Integer) info.get("sellerId");		
			for (int k = 0; k < Orderlist.length(); k++) {
				list.add(Orderlist.getInt(k));
			}
			
			// 参数
			getorderlistbyorderidlistbean.setOrderIdList(list);
		    getorderlistbyorderidlistbean.setSellerId(11111111);			
			
			// 发送请求
			
			getorderlistbyorderidlistcall.setData(getorderlistbyorderidlistbean);
			getorderlistbyorderidlistcall.callService();			
						
			Logger.verifyEquals(ECode.SUCCESS, getorderlistbyorderidlistcall.getCode(), "验证code");
			
			
			}catch (Exception e) {
			Logger.fail(e);
		    }
	  }
	
	@Test
	@Category(P1.class)
	@TestCase
	public void Tc_GetOrderListByOrderIdList_004(){
		Logger.start(true,"订单列表为空，列表获取订单列表为空");
		try {
			// 创建订单
			ArrayList<Integer> list = new ArrayList<Integer>();
			Map info = new OrderCallService().createBatchM2cOrder(3);
			JSONArray Orderlist = (JSONArray) info.get("orderIds");
			int sellerId = (Integer) info.get("sellerId");		
			for (int k = 0; k < Orderlist.length(); k++) {
				list.add(Orderlist.getInt(k));
			}
			
			// 参数
		  //getorderlistbyorderidlistbean.setOrderIdList(list);
		    getorderlistbyorderidlistbean.setSellerId(sellerId);			
			
			// 发送请求
			
			getorderlistbyorderidlistcall.setData(getorderlistbyorderidlistbean);
			getorderlistbyorderidlistcall.callService();			
						
			Logger.verifyEquals(ECode.FAILED400, getorderlistbyorderidlistcall.getCode(), "验证code");
			Logger.verifyEquals(ECode.BCODE8, getorderlistbyorderidlistcall.getBCode(), "验证bcode");
			Logger.verifyEquals("orderIdList:订单id列表不能为空", getorderlistbyorderidlistcall.getMsg(), "验证msg");
			
			
			}catch (Exception e) {
			Logger.fail(e);
		    }
	  }
}
